package com.sunyard.wx.demo.repository;

import com.sunyard.wx.demo.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by xi.w on 2018-04-17.
 */
public interface UserRepository extends JpaRepository<User, Long> {

    User findByUserName(String userName);

    User findByUserNameOrEmail(String username, String email);
}
